function exportDataAsCsv(element) {
    var output = new Array();
    var line = 'Rajszám;Név;';
    for (var i = 0; i < checkPoints.length; ++i) {
        line += checkPoints[i].name + ';';
    }
    output.push(line);
    var competitorCount = stats.competitorCount;
    for (var j = 0; j < competitorCount; ++j) {
        line = '';
        for (var i = 0; i < checkPoints.length + 2; ++i) {
            line += currentData.getFormattedValue(j, i) + ';';
        }
        output.push(line);
    }
    element.html(output.join('<br/>'));
}
